package org.benjamin.tenancy.domain.entity;

import java.math.BigDecimal;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "tab_income_info")
public class IncomeInfo {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	@JoinColumn(name = "housing_id")
	private Housing housing;
	
	@Column(name = "yeam")
	private Integer yeam;
	
	@Column(name = "month")
	private Integer month;
	
	@Column(name = "amount",scale = 2)
	private BigDecimal amount;
	
	//是否钱已经收到了
	@Column(name = "status")
	private boolean status;
	
	@OneToOne
	@JoinColumn(name = "receipt_bills_id")
	private ReceiptBills receiptBills;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getYeam() {
		return yeam;
	}

	public void setYeam(Integer yeam) {
		this.yeam = yeam;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public ReceiptBills getReceiptBills() {
		return receiptBills;
	}

	public void setReceiptBills(ReceiptBills receiptBills) {
		this.receiptBills = receiptBills;
	}

	public Housing getHousing() {
		return housing;
	}

	public void setHousing(Housing housing) {
		this.housing = housing;
	}
	
	
}
